package 集合框架.shousidaima;

import java.util.ArrayList;

public class Apply {
    public static void main(String[] args) {
        ArrayListDemo<String> list = new ArrayListDemo<>();
        list.add("aa");
        list.add("bb");
        list.add("cc");
        list.add("dd");
        System.out.println(list);
        String s1 = list.get(0);
        System.out.println(s1);
        list.add(1, "ee");
        System.out.println(list);
        list.remove(2);
        System.out.println(list);
        int index = list.indexOf("cc");
        System.out.println(index);
    }
}
